-- GENERATED SPELL FOR [Jin'Alai Warrior] --


function spell0_28388(pUnit, Event) --@Poison Tipped Spear,n/a--
pUnit:FullCastSpellOnTarget(54630,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28388', 9000, 1)
end

function spell1_28388(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(38556,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28388', 1500, 1)
end

function Sorts_28388(pUnit, Event)
local choix_sorts_28388 = math.random(0, 1)
if choix_sorts_28388 == 0 then
pUnit:RegisterEvent('spell0_28388', 1, 1)
end
if choix_sorts_28388 == 1 then
pUnit:RegisterEvent('spell1_28388', 1, 1)
end
end

function mob28388_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28388', math.random(1500, 3000), 1)
end

function mob28388_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28388_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28388_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28388, 1, 'mob28388_Action')
RegisterUnitEvent(28388, 2, 'mob28388_Leave')
RegisterUnitEvent(28388, 3, 'mob28388_Kill')
RegisterUnitEvent(28388, 4, 'mob28388_Die')
